package com.xizi.lotterySystem.controller.param;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
public class CreateActivityParam {

    @NotBlank(message = "活动名称不能为空！")
    private String activityName;

    @NotBlank(message = "活动描述不能为空！")
    private String description;


    @Valid
    @NotEmpty(message = "活动奖品不能为空！")
    List<ActivityPrizeList> activityPrizeList;


    @Valid
    @NotEmpty(message = "活动参与者不能为空！")
    List<ActivityUserList> activityUserList;
}
